addcomment.js ➔ add   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 4
c 0
b 0
f 0
cc 1
rs 10
1
function add() {
2
    var element = document.getElementById('comments');
3
    element.classList.toggle("hide");
4
}
5
6
7
function myFunction(id) {
8
    var idid="comment" + id;
9
    console.log(idid);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
10
    var element = document.getElementById(idid);
11
    element.classList.toggle("hide");
12
}
13